package com.allin.mall.auth.controller;


import com.allin.mall.common.core.api.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("sayHi")
    public String sayHi() {

        return "hi";
    }

    @GetMapping("/hihi")
    public Mono<CommonResult> monoHi() {
        return Mono.just(CommonResult.success());
    }

}
